/**
 * 
 */
package com.jie.eclipse.pan.editors;

import org.eclipse.jface.action.IAction;
import org.eclipse.jst.jsp.ui.internal.editor.ActionContributorJSP;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IWorkbenchPage;

import com.jie.eclipse.pan.action.BaseAction;

/**
 * @author yanjie
 *
 */
public class PllActionContributorJSP extends ActionContributorJSP{
	private IAction open0;
	private IAction open1;
	private IAction open2;
	private IAction open3;
	private IAction open00;
	private IAction open_O;
	/**
	 * 
	 */
	public PllActionContributorJSP() {
		createActions();
	}
	
	@Override
	public void init(IActionBars actionBars, IWorkbenchPage page) {
		// TODO Auto-generated method stub
		super.init(actionBars, page);
		
		if (actionBars != null) {
			actionBars.setGlobalActionHandler("com.jie.eclipse.pan.action.open0action", open0);
			actionBars.setGlobalActionHandler("com.jie.eclipse.pan.action.open00action", open00);
			actionBars.setGlobalActionHandler("com.jie.eclipse.pan.action.open1action", open1);
			actionBars.setGlobalActionHandler("com.jie.eclipse.pan.action.open2action", open2);
			actionBars.setGlobalActionHandler("com.jie.eclipse.pan.action.open3action", open3);
			actionBars.setGlobalActionHandler("com.jie.eclipse.pan.action.openOaction", open_O);
		}
	}
	
	private void createActions() {
		open00 = new BaseAction(this,"altshift`");
		open0 = new BaseAction(this,"alt`");
		open1 = new BaseAction(this,"alt1");
		open2 = new BaseAction(this,"alt2");
		open3 = new BaseAction(this,"alt3");
		open_O = new BaseAction(this,"alt_O");
	}
}
